package com.chapter4.superprivatefinal.demo3;


/**
 * final参数不可修改
 */
class Game{
    public int prop;

    public void play(){
        System.out.println("play game");
    }
}
public class FinalParams {
    public void FinalParams(final int a,final Game g){
        //a=1; 不可修改
        //g=new Game(); 不可修改
        g.prop=10;
    }
}
